<template>
  <div class="page">
    <div class="card-box">
      <div class="card welcome-card">
        <div class="left-part">
          <div class="title">早安，管理员，请开始一天的工作吧</div>
          <div class="weather">{{ weatherInfo }}</div>
        </div>
        <div class="right-part">
          <img src="@/assets/img/dashboard.png" alt="">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Dashboard'
}
</script>

<script setup>
import { useWeatherInfo } from '@/views/dashboard/weather.js'
const weatherInfo = useWeatherInfo()

</script>

<style lang="scss" scoped>
.welcome-card{
  height: 260px;
  display: flex;
  color: #777;
  .left-part{
    width: 60%;
    display: flex;
    flex-direction: column;
    .title{
      font-size: 22px;
      color: #343844;
    }
    .weather{
      font-size: 16px;
      color: #6B7687;
      margin-top: 24px;
    }
  }
  .right-part{
    height: 100%;
    width: 40%;
    display: flex;
    align-items: center;
  }
}
</style>

<style>
</style>